Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Developing Applications > Adopting CSS3 of Domino classic Web application to support multiscreen for different devices
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Adopting CSS3 of Domino classic Web application to support multiscreen for different devices

HTML is a textbased markup language used to format information, HTML is a language that is used to structure and present text and images within a user interface. CSS is a language that is used to define how HTMLbased content is displayed on the web. CSS can be used to control layout, spacing, ...
Community articleAdopting CSS3 of Domino classic Web application to support multiscreen for different devices
Added by ~Joan Xanponemargon | Edited by IBM contributor~Joan Xanponemargon on December 21, 2011 | Version 13
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: 8.5.3, Mobile

HTML is a text-based markup language used to format information, HTML is a language that is used to structure and present text and images within a user interface.

 

CSS is a language that is used to define how HTML-based content is displayed on the web. CSS can be used to control layout, spacing, colors, fonts, and much more, and has been an integral component of "the Web".

 

In Domino classic Web application, you can adopt HTML and CSS to format the Web data and layout. Many users are using different devices to browse Domino classic Web application. If the classic Web application can support multiscreen for different kind of devices, this will be wonderful feature.

 

CSS3 media queries allow developers to create style sheets that apply to specific screen dimensions. Using media queries, a singular HTML document can have a varied presentation on a range of screens or devices. Differing layout and presentation for tablet-based interfaces, mobile phone interfaces, and desktop interfaces can be applied to the same HTML document. We can adopt CSS3 media queries feature in Domino classic Web application to support multiscreen for different kind of devices.

 

Here is our environment : Domino v8.5.3 server, Firefox v8, Google Chrome v16, Android v2.3

 

When writing HTML code in a Domino application Form or Page, you need to add viewport tag instructs mobile devices to use the actual width of the screen (device-width) when applying media queries.

 

 

When creating the CSS for the application HTML Form or Page, you can use media queries with CSS @import to specify the media type. The styles in desktop.css need to apply to all browsers, the rules in device.css need to override the basic rules in desktop.css.

 

 

If using an external CSS (or text) editor, create the CSS file externally to the Domino application and then import it as a Style Sheet Resource:

 

If it is a desktop browser, it adopt desktop.css to format display layout. Otherwise, it will adopt device.css to format HTML5 document layout in smartphone.

 

When this Web application launch in Domino server, we use a HTML5/CSS3 compatible device (Firefox v8, Google Chrome v16, Android v2.3) to browse it. The Web page can display correctly in those devices.

 

The Domino classic Web application which adopt HTML5 and CSS3 displaying in Google Chrome.

 

 

The Domino classic Web application which adopt HTML5 and CSS3 displaying in Firefox v8.

 

The Domino classic Web application which adopt HTML5 and CSS3 displaying in Android v2.3.

 

 

This sample demo that the Domino Web classic application web page will base on device screen dimensions to change the display layout following CSS definition.

 

Conclusion

 

In this short article, we adopt CSS3 media queries to customize the Domino classic Web application web page display layout applied to the same HTML5 document for different device screen.

Next step, we can integrate it with existing data to be a practical Web application for supporting multiscreen.


  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (13)
collapsed Versions (13)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (13)Dec 21, 2011, 12:39:32 PM~Joan Xanponemargon  IBM contributor
12Dec 21, 2011, 12:23:16 PM~Sarah Ekboosimanoden  IBM contributor
11Dec 21, 2011, 12:18:28 PM~Sarah Ekboosimanoden  IBM contributor
10Dec 21, 2011, 12:12:49 PM~Sarah Ekboosimanoden  IBM contributor
9Dec 21, 2011, 12:10:36 PM~Sarah Ekboosimanoden  IBM contributor
8Dec 21, 2011, 12:05:19 PM~Sarah Ekboosimanoden  IBM contributor
7Dec 21, 2011, 12:03:29 PM~Sarah Ekboosimanoden  IBM contributor
6Dec 21, 2011, 12:01:42 PM~Sarah Ekboosimanoden  IBM contributor
5Dec 21, 2011, 12:00:45 PM~Sarah Ekboosimanoden  IBM contributor
4Dec 21, 2011, 11:59:49 AM~Sarah Ekboosimanoden  IBM contributor
3Dec 21, 2011, 11:56:23 AM~Sarah Ekboosimanoden  IBM contributor
2Dec 21, 2011, 11:47:52 AM~Sarah Ekboosimanoden  IBM contributor
1Dec 21, 2011, 11:44:09 AM~Sarah Ekboosimanoden  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility